package com.example.hcd.datamanage;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;

/**
 * Created by Dell on 2016/8/10.
 */
public class UseCarData  {


    String userName;
    String userId;
    String destination;
    String reason;
    int predictMileage;
    String startData;
    private String endDate;
    private String remark;
    private int status;
    private long createtime;
    private long endtime;
    private String processInstanceId;
    private double departMileage;
    private double returnMileage;
    private double totalMileage;
    private String workUserId;
    private Object auditDate;
    private Object auditreason;
    private int backstatus;
    private Object backdatetime;
    private String processStatus;
    private String processStatusValue;
    private String applicant;
    private String imgPrefix;

    /**
     * id : f0e30f30-d294-6697-4fb4-07cd2142bc76
     * username : 俞梦雯
     * userid : cda0abaa-cbf6-49b0-8129-661690629352
     * destination : 滚滚滚
     * reason : 刚刚好
     * predictMileage : 55.0
     * startDate : 1471237200000
     * endDate : null
     * remark : 吃饱
     * status : 1
     * createtime : 1471239926000
     * endtime : null
     * processInstanceId : 7601
     * departMileage : 0.0
     * returnMileage : 0.0
     * totalMileage : 0.0
     * workUserId :
     * auditDate : null
     * auditreason : null
     * backstatus : 0
     * backdatetime : null
     * processStatus : 提车-俞梦雯(行政人事)
     * processStatusValue : 3
     * applicant : 俞梦雯(行政人事)
     */



    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public int getPredictMileage() {
        return predictMileage;
    }

    public void setPredictMileage(int predictMileage) {
        this.predictMileage = predictMileage;
    }

    public String getStartData() {
        SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        long time = Long.parseLong(startData);
        return mFormat.format(new Date(time));
    }

    public String getStartData(boolean flag)
    {
        return startData;
    }

    public void setStartData(String startData) {
        this.startData = startData;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }



    public String getApplicant() {
        return applicant;
    }

    public void setApplicant(String applicant) {
        this.applicant = applicant;
    }

    public String getProcessStatusValue() {
        return processStatusValue;
    }

    public void setProcessStatusValue(String processStatusValue) {
        this.processStatusValue = processStatusValue;
    }

    public String getProcessStatus() {
        return processStatus;
    }

    public void setProcessStatus(String processStatus) {
        this.processStatus = processStatus;
    }

    public Object getBackdatetime() {
        return backdatetime;
    }

    public void setBackdatetime(Object backdatetime) {
        this.backdatetime = backdatetime;
    }

    public int getBackstatus() {
        return backstatus;
    }

    public void setBackstatus(int backstatus) {
        this.backstatus = backstatus;
    }

    public Object getAuditreason() {
        return auditreason;
    }

    public void setAuditreason(Object auditreason) {
        this.auditreason = auditreason;
    }

    public Object getAuditDate() {
        return auditDate;
    }

    public void setAuditDate(Object auditDate) {
        this.auditDate = auditDate;
    }

    public String getWorkUserId() {
        return workUserId;
    }

    public void setWorkUserId(String workUserId) {
        this.workUserId = workUserId;
    }

    public double getTotalMileage() {
        return totalMileage;
    }

    public void setTotalMileage(double totalMileage) {
        this.totalMileage = totalMileage;
    }

    public double getReturnMileage() {
        return returnMileage;
    }

    public void setReturnMileage(double returnMileage) {
        this.returnMileage = returnMileage;
    }

    public double getDepartMileage() {
        return departMileage;
    }

    public void setDepartMileage(double departMileage) {
        this.departMileage = departMileage;
    }


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getEndDate() {
        SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        long time = Long.parseLong(endDate);
        return mFormat.format(new Date(time));
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getImgPrefix()
    {
        return imgPrefix;
    }
    public void setImgPrefix(String imgPrefix)
    {
        this.imgPrefix = imgPrefix;
    }
    private ArrayList<ImageFileType> imageList = new ArrayList<ImageFileType>();
    public ArrayList<ImageFileType> getImageList() {
        return imageList;
    }
    public void setImageList(ArrayList<ImageFileType> imageList) {
        this.imageList = imageList;
    }
}
